import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { DataTemplate } from './data-template.entity';
import { DataRecord } from './data-record.entity';
import { DataService } from './data.service';
import { DataController } from './data.controller';
import { DataViewController } from './data-view.controller';
import { AuthModule } from '../auth/auth.module';

@Module({
  imports: [TypeOrmModule.forFeature([DataTemplate, DataRecord]), AuthModule],
  providers: [DataService],
  controllers: [DataController, DataViewController],
  exports: [DataService],
})
export class DataModule {}